NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Technical Q&A QD3D12
Adding File and Clipboard Support to a QuickDraw 3D Application

Q: I'm trying to create a simple QuickDraw 3D program to send a metafile to the clipboard. It seems that I need to create a memory-storage object, have QuickDraw 3D write into it, and then send it to the clipboard via the scrap manager.

How do I get QuickDraw 3D to write to a memory-storage object? While I can create a memory-storage object, there are no facilities to write directly to a storage object [[pi]], as everything seems to be geared to writing to a file.

A: You can access any storage object's data with Q3Storage_SetData, Q3Storage_GetData. These will alter the contents of a storage object but cannot be attached to an open "file object" at the time. You might also want to check out the Tumbler Sample on the Developer CD for an example of an update.

[Jun 01 1995]


Developer Documentation | Technical Notes | Development Kits | Sample Code